package com.kust.smarthome.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kust.smarthome.web.dto.OrderDto;
import com.kust.smarthome.web.dto.OrderDto2;
import com.kust.smarthome.web.model.OrderForm;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author iAuzre
 * @since 2021-07-09
 */
public interface IOrderFormService extends IService<OrderForm> {
    boolean insert(OrderForm order);

    List<OrderDto> getState0ByUserId(Integer userId);

    List<OrderDto> getState1ByUserId(Integer userId);

    List<OrderDto> getState2ByUserId(Integer userId);

    List<OrderDto> getState3ByUserId(Integer userId);

    List<OrderDto> getState4ByUserId(Integer userId);

    List<OrderDto> getAll(Integer id);

    List<OrderDto2> getAll2(Integer id);

    boolean deleteOrder(Integer userId, String id);

    OrderForm getOrderByID(String id);
}
